﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TestMvcForControllerAndAction.Infrastructure;
using TestMvcForControllerAndAction.Models;

namespace TestMvcForControllerAndAction.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/
        public ViewResult Index()
        {
            
            return View("result",new Result{ControllerName = "Product",ActionName = "Index"});
        }
        [ActionName("list")]
        public ViewResult List()
        {
            return View("Result", new Result {ControllerName = "Product", ActionName = "List"});
        }
        [Local]
        [ActionName("list")]
        public ViewResult LocalList()
        {
            return View("Result", new Result {ControllerName = "Product", ActionName = "Local List"});
        }
    }
}